#!/bin/bash
kill -9 `cat pidfile.txt`;
nohup node index.js & echo $! > pidfile.txt;